package com.moyq5.permit.center.core;

/**
 * Service层对外异常
 * @author Moyq5
 * @date 2018年5月4日
 */
public class ServiceOpenException extends ServiceException {

	private static final long serialVersionUID = 1L;

	public ServiceOpenException(ServiceErrorCode code, String message) {
		super(code, message);
	}
	
	public ServiceOpenException(ServiceErrorCode code, Object[] args) {
		super(code, String.format(code.getText(), args));
	}

	public ServiceOpenException(ServiceErrorCode code) {
		super(code);
	}

	public ServiceOpenException() {
		super(ServiceErrorCode.C9999);
	}

}
